package hsp.admin.app.base.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Schema(description = "角色程序关系表")
@Data
@TableName("base_role_app_relation")
public class RoleAppRelationPO {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "角色主键")
    @NotBlank
    @TableField("role_id")
    private Long roleId;

    @Schema(description = "程序主键")
    @NotBlank
    @TableField("app_id")
    private Integer appId;

}
